<%@ page import="core.Core,pojos.Message,pojos.User, java.util.Iterator, util.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
				<table class="chat_table">
				<%
				for(Iterator<Message> it=Core.getInstance().getMessages().iterator();it.hasNext();){
					Message msg=it.next();
					String systemstyle="";
					//String msgcolspan="";
					if(msg.isSystemMsg()){
						systemstyle=" systemmsg";
						//msgcolspan=" colspan=\"2\"";
					}
				//Detectamos urls
				String message="";
				if(!msg.isSystemMsg())
				 	message+=msg.getFormattedNick()+" ";
				message+=msg.getMsg();
				message=Core.getInstance().msgformat(message);
				%>
					<tr>
						<td class="chat_date"><%=msg.getFormattedDate()%></td>
						<td class="chat_msg<%=systemstyle%>">
						<%=message%></td>
					</tr>
				<%
				}
				%>
				</table>